package com.football.feign.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;


public class MongoDBDocument<T> {
    @Id
    private String id;
    @Field
    private T t;

    public MongoDBDocument() {
    }

    public MongoDBDocument(String id, T t) {
        this.id = id;
        this.t = t;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
